<template>
  <div class="travel-container">
    <div class="header-banner">
      <img
        src="https://big-eventllll.oss-cn-beijing.aliyuncs.com/header_PhotoGrid.png"
        class="banner-image"
      />
    </div>

    <div class="attraction-carousel">
      <div class="section-title">
        <span class="title-icon">🌍</span>
        <h2>探索世界之美 · 热门目的地推荐</h2>
        <span class="title-icon">✈️</span>
      </div>

      <el-carousel
        :interval="3500"
        type="card"
        height="420px"
        indicator-position="outside"
        class="travel-carousel"
      >
        <!-- 轮播项保持不变 -->
        <el-carousel-item>
          <h3 text="2xl" justify="center">
            <img
              src="https://big-eventllll.oss-cn-beijing.aliyuncs.com/lb1.png"
              style="width: 100%;"
            />
          </h3>
        </el-carousel-item>
        <el-carousel-item>
          <h3 text="2xl" justify="center">
            <img
              src="https://big-eventllll.oss-cn-beijing.aliyuncs.com/lb2.png"
              style="width: 100%;"
            />
          </h3>
        </el-carousel-item>
        <el-carousel-item>
          <h3 text="2xl" justify="center">
            <img
              src="https://big-eventllll.oss-cn-beijing.aliyuncs.com/lb3.png"
              style="width: 100%;"
            />
          </h3>
        </el-carousel-item>
        <el-carousel-item>
          <h3 text="2xl" justify="center">
            <img
              src="https://big-eventllll.oss-cn-beijing.aliyuncs.com/lb4.png"
              style="width: 100%;"
            />
          </h3>
        </el-carousel-item>
        <el-carousel-item>
          <h3 text="2xl" justify="center">
            <img
              src="https://big-eventllll.oss-cn-beijing.aliyuncs.com/lb5.png"
              style="width: 100%;"
            />
          </h3>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>
  
  <style scoped>
.travel-container {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 20px 0;
}

.header-banner {
  margin: 0 5%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 92, 169, 0.15);
  transition: transform 0.3s ease;
}

.banner-image {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.attraction-carousel {
  padding: 40px 5%;
  margin-top: 30px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title h2 {
  color: #2d4279;
  font-size: 2.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

.title-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 轮播图定制样式 */
.travel-carousel {
  :deep(.el-carousel__container) {
    padding: 10px 0 40px;
  }

  :deep(.el-carousel__item) {
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    &.is-active {
      transform: scale(1);
      box-shadow: 0 15px 40px rgba(45, 66, 121, 0.2);
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s ease;
    }

    &:hover img {
      transform: scale(1.05);
    }
  }

  :deep(.el-carousel__indicator) {
    padding: 12px 8px;

    .el-carousel__button {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #a0d8ff;
      transition: all 0.3s ease;
    }

    &.is-active .el-carousel__button {
      background: #2d4279;
      transform: scale(1.4);
    }
  }

  :deep(.el-carousel__arrow) {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #2d4279;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 15px rgba(45, 66, 121, 0.2);
    transition: all 0.3s ease;

    &:hover {
      background: #2d4279;
      transform: scale(1.1);

      i {
        color: white;
      }
    }

    i {
      font-size: 28px;
      color: #2d4279;
      font-weight: bold;
    }
  }
}
</style>